/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.service;

import com.darren.euc.entity.Activity;
import com.darren.euc.entity.PageBean;
import net.sf.json.JSONObject;

import java.util.List;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/11
 */
public interface ActivityService {

    PageBean queryForPageActivityHQL(JSONObject data, Integer pageSize, int currentPage);

    PageBean queryForPageActivityByMemberSQL(Integer memberId, Integer pageSize, int currentPage);

    PageBean queryForPageActivitySpaceHQL(List<Long> data, Integer pageSize, int currentPage);

    Activity aoe(JSONObject data);

    Activity findById(Long id);

    Activity delete(Long id);

    List<Activity> findByStatus(Integer status);

    Activity update(Activity activity);

    List<Activity> findNewTop5(Integer spaceId);

    List<Activity> findByIdIn(List<Long> ids);

	List<Activity> findAllTop5();

}
